package com.naiterui.ehp.bs.doctor.fegin;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author gaoliangliang
 * @date 2019-06-24 14:57
 * @since 1.0.0
 */
@FeignClient(name = "adWeixin", url = "${ehp.domain.weixin}", configuration = FeignConfiguration.class)
public interface WeixinFeignClient {

    /**
     * 获取微信小程序无限二维码
     * @param scene
     * @param page
     * @return
     * @throws BusinessException
     */
    @GetMapping("weixin/inner/qrcode/wx/ma/unlimited")
    String miniappQrcode(@RequestParam String scene, @RequestParam String page) throws BusinessException;

}
